import request from '@/config/axios'

// 获得页面配置分页
export const getDiyParamsPage = async (params: any) => {
  return await request.get({ url: `/promotion/diy-page-config/page`, params }, true)
}

// 创建页面配置
export const createDiyParamsPage = async (data: any) => {
  return await request.post({ url: `/promotion/diy-page-config/create`, data })
}

// 更新页面配置
export const updateDiyParamsPage = async (data: any) => {
  return await request.put({ url: `/promotion/diy-page-config/update`, data })
}

// 删除页面配置
export const deleteDiyParamsPage = async (params: any) => {
  return await request.delete({ url: `/promotion/diy-page-config/delete`, params })
}